package com.jing.mall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.jing.mall.common.utils.PageUtils;
import com.jing.mall.product.entity.AttrEntity;
import com.jing.mall.product.vo.AttrGroupRealtionVo;
import com.jing.mall.product.vo.AttrResponseVo;
import com.jing.mall.product.vo.AttrVo;

import java.util.List;
import java.util.Map;

/**
 * 商品属性
 *
 * @author jingyang
 * @email 1532800767@qq.com
 * @date 2022-05-30 01:19:04
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveAttr(AttrVo attr);

    PageUtils queryBaseAttrListPage(Map<String, Object> params, Long catelogId, String type);

    AttrResponseVo getAttrInfo(Long attrId);

    void updateAttr(AttrVo attr);

    List<AttrEntity> getRelationAttr(Long attrgroupId);

    void deleteRelation(AttrGroupRealtionVo[] vos);

    PageUtils getNoRelationAttr(Long attrgroupId, Map<String, Object> params);

    /**
     * 在指定的所有属性里面，挑出检索属性
     * @param attrList
     * @return
     */
    List<Long> selectSearchIds(List<Long> attrList);
}

